package com.scujj.controller;

import com.scujj.pojo.Result;

import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;

public interface OfferController {
    Result createOffer(String context, String title, String bountyString, HashMap<String,String> header, MultipartFile[] images);
    Result checkOfferPaid(String offerId,HashMap<String, String> header);
    Result showUnacceptedOffersLast(int page,int limit);
    Result showUnacceptedOffersCostly(int page,int limit);
    Result acceptOffer(String offerId,HashMap<String, String> header);
    Result delOffer(Long id, HashMap<String,String> header);
    Result showOfferOfUser(int page,int limit,HashMap<String, String> header);
    Result getOfferById(String id,int page,int limit);
}
